package com.ibuu.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ibuu.demos.pojo.Categories;
import com.ibuu.demos.pojo.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CategoriesMapper extends BaseMapper<Categories> {

    @Select("SELECT * FROM news WHERE id = 1") // 示例SQL语句
    News selectNews();
}